<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid" class="form-control" name="row[pid]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-detail" class="form-control" name="row[detail]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control" name="row[area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Design_index')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-design_index" class="form-control selectpicker" name="row[design_index]">
                {foreach name="designIndexList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_percent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_percent" class="form-control" name="row[use_percent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Metal_percent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-metal_percent" class="form-control" name="row[metal_percent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Metal_str_percent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-metal_str_percent" class="form-control" name="row[metal_str_percent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Concrete_percent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-concrete_percent" class="form-control" name="row[concrete_percent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Park_space')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-park_space" class="form-control" name="row[park_space]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transformer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transformer" class="form-control" name="row[transformer]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Density')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-density" class="form-control" name="row[density]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Computer_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-computer_area" class="form-control" name="row[computer_area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ele_room_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ele_room_area" class="form-control" name="row[ele_room_area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Engine_room_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-engine_room_area" class="form-control" name="row[engine_room_area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cold_capacity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-cold_capacity" class="form-control" data-toggle="city-picker" name="row[cold_capacity]" type="text"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hot_capacity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-hot_capacity" class="form-control" data-toggle="city-picker" name="row[hot_capacity]" type="text"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_cost')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_cost" class="form-control" name="row[up_cost]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_cost')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_cost" class="form-control" name="row[down_cost]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Outside_decoration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-outside_decoration" class="form-control" name="row[outside_decoration]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Elevation_decoration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-elevation_decoration" class="form-control" name="row[elevation_decoration]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_hardcover_cost')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_hardcover_cost" class="form-control" name="row[company_hardcover_cost]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_strong_current')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_strong_current" class="form-control" name="row[up_strong_current]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_air_conditioning')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_air_conditioning" class="form-control" name="row[up_air_conditioning]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_fire_engineering')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_fire_engineering" class="form-control" name="row[up_fire_engineering]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_intelligent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_intelligent" class="form-control" name="row[up_intelligent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Up_sum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-up_sum" class="form-control" name="row[up_sum]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_strong_current')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_strong_current" class="form-control" name="row[down_strong_current]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_air_conditioning')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_air_conditioning" class="form-control" name="row[down_air_conditioning]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_fire_engineering')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_fire_engineering" class="form-control" name="row[down_fire_engineering]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_intelligent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_intelligent" class="form-control" name="row[down_intelligent]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_sum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_sum" class="form-control" name="row[down_sum]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Elevator')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-elevator" class="form-control" name="row[elevator]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gas')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gas" class="form-control" name="row[gas]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logistics_decoration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-logistics_decoration" class="form-control" name="row[logistics_decoration]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Earthwork_foundation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-earthwork_foundation" class="form-control" name="row[earthwork_foundation]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Measures_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-measures_fee" class="form-control" name="row[measures_fee]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Some_material')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-some_material" class="form-control" name="row[some_material]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
